<template>
    <el-button  type="primary"  plain @click="goTo(stock, date)">{{ content }}</el-button>
</template>

<script setup>
import { openNewTableDisplay } from '../../router';

const props = defineProps({
    stock: String,
    date: String,
    content: {
        type: String,
        default: 'display'
    },
})

const goTo = (stock, date) => {
    openNewTableDisplay(stock, date)
}
</script>